﻿#ifndef CONNECT_SOCKET_H
#define CONNECT_SOCKET_H

#include "hashmap.h"
#include "packet.h"


SocketNode* create_sockets(char* src_ip, unsigned short int src_port, char* dst_ip, unsigned short int dst_port, unsigned  int ack);
void start_sockets(int tun_fd, HashMap* hashmap);
void close_socket_node(int tun_fd,SocketNode* socket_node, HashMap* hashmap);
void remove_socket_node(SocketNode* socket_node, HashMap* hashmap);

#endif // CONNECT_SOCKET_H